using System;
using System.Collections.Generic;
using System.Text;

namespace Heckel.EasyTools.Diagramming
{
    [Serializable()]
    public class NodeStatusEventArgs: EventArgs
    {
        public bool HasErrors
        {
            get { return _errors.Count > 0; }
        }
        public bool HasWarnings
        {
            get { return _warnings.Count > 0; }
        }
        public bool HasInfo
        {
            get { return _info.Count > 0; }
        }

        private Dictionary<int, string> _allIds;
        public Dictionary<int, string> AllIds
        {
            get { return _allIds; }
            set { _allIds = value; }
        }

        private Dictionary<string, string> _errors = new Dictionary<string, string>();
        public Dictionary<string, string> Errors
        {
            get { return _errors; }
            set { _errors = value; }
        }

        private Dictionary<string, string> _warnings = new Dictionary<string, string>();
        public Dictionary<string, string> Warnings
        {
            get { return _warnings; }
            set { _warnings = value; }
        }

        private Dictionary<string, string> _info = new Dictionary<string, string>();
        public Dictionary<string, string> Info
        {
            get { return _info; }
            set { _info = value; }
        }

        public NodeStatusEventArgs(Dictionary<int, string> allIds)
        {
            _allIds = allIds;
        }
    }
}
